/*
 * XML Type:  ProfileRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.ProfileRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML ProfileRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class ProfileRequestImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.ProfileRequest
{
    
    public ProfileRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CLIENTROUTING$0 = 
        new javax.xml.namespace.QName("", "CLIENTROUTING");
    private static final javax.xml.namespace.QName DTPROFUP$2 = 
        new javax.xml.namespace.QName("", "DTPROFUP");
    
    
    /**
     * Gets the "CLIENTROUTING" element
     */
    public net.ofx.types.x2003.x04.ClientRoutingEnum.Enum getCLIENTROUTING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLIENTROUTING$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.ClientRoutingEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CLIENTROUTING" element
     */
    public net.ofx.types.x2003.x04.ClientRoutingEnum xgetCLIENTROUTING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ClientRoutingEnum target = null;
            target = (net.ofx.types.x2003.x04.ClientRoutingEnum)get_store().find_element_user(CLIENTROUTING$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CLIENTROUTING" element
     */
    public void setCLIENTROUTING(net.ofx.types.x2003.x04.ClientRoutingEnum.Enum clientrouting)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLIENTROUTING$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CLIENTROUTING$0);
            }
            target.setEnumValue(clientrouting);
        }
    }
    
    /**
     * Sets (as xml) the "CLIENTROUTING" element
     */
    public void xsetCLIENTROUTING(net.ofx.types.x2003.x04.ClientRoutingEnum clientrouting)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ClientRoutingEnum target = null;
            target = (net.ofx.types.x2003.x04.ClientRoutingEnum)get_store().find_element_user(CLIENTROUTING$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ClientRoutingEnum)get_store().add_element_user(CLIENTROUTING$0);
            }
            target.set(clientrouting);
        }
    }
    
    /**
     * Gets the "DTPROFUP" element
     */
    public java.lang.String getDTPROFUP()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTPROFUP$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTPROFUP" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTPROFUP()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTPROFUP$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTPROFUP" element
     */
    public void setDTPROFUP(java.lang.String dtprofup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTPROFUP$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTPROFUP$2);
            }
            target.setStringValue(dtprofup);
        }
    }
    
    /**
     * Sets (as xml) the "DTPROFUP" element
     */
    public void xsetDTPROFUP(net.ofx.types.x2003.x04.DateTimeType dtprofup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTPROFUP$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTPROFUP$2);
            }
            target.set(dtprofup);
        }
    }
}
